package com.cgnpc.scp.purchase.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.cgnpc.scp.common.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

@TableName("tbl_purchase_change_apply_item")
public class ChangeProcessItem {
    private String id;

    private String applyId;

    private String itemId;

    private String estimateAmount;

    private String currency;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date requiredArrivalTime;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date plannedCompletionTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getApplyId() {
        return applyId;
    }

    public void setApplyId(String applyId) {
        this.applyId = applyId == null ? null : applyId.trim();
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId == null ? null : itemId.trim();
    }

    public String getEstimateAmount() {
        return estimateAmount;
    }

    public void setEstimateAmount(String estimateAmount) {
        this.estimateAmount = estimateAmount;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Date getRequiredArrivalTime() {
        return DateUtil.cloneNewDate(requiredArrivalTime);
    }

    public void setRequiredArrivalTime(Date requiredArrivalTime) {
        this.requiredArrivalTime = DateUtil.cloneNewDate(requiredArrivalTime);
    }

    public Date getPlannedCompletionTime() {
        return DateUtil.cloneNewDate(plannedCompletionTime);
    }

    public void setPlannedCompletionTime(Date plannedCompletionTime) {
        this.plannedCompletionTime = DateUtil.cloneNewDate(plannedCompletionTime);
    }
}